<div class="minutetypes index">
<h2><?php __('Minute format');?></h2>

<table cellpadding="0" cellspacing="0">
<tr>
    <th width="3%"><?php __('No')?></th>
    <th width="20%"><?php echo $paginator->sort('type');?></th>
    <th><?php __('Minute format');?></th>
    <th class="actions"><?php __('Actions');?></th>
</tr>
<?php
if(!count($minutetypes))
    echo "<tr><td colspan='4'>".__('No record found',true)."</td></tr>";

if($paginator->current() == '1') $i = 0;
else $i = $paginator->current() * $this->params['paging']['Minutetype']['options']['limit'] - $this->params['paging']['Minutetype']['options']['limit'];

foreach ($minutetypes as $minutetype):
    $class = null;
    if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
    }
?>
    <tr<?php echo $class;?>>
            <td>
                <?php echo $i.'. '; ?>
            </td>
            <td>
                    <?php echo $minutetype['Minutetype']['type']; ?>
            </td>
            <td>
                    <?php echo nl2br($minutetype['Minutetype']['format']); ?>
            </td>
            <td class="actions">
                <?php echo $html->link($html->image('icons/edit.gif',array('alt'=>__('Edit',true),'title'=>__('Edit',true))), array('action'=>'edit', $minutetype['Minutetype']['id']),array('escape'=>false)); ?>
        </td>
    </tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
    <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 |  <?php echo $paginator->numbers();?>
    <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
